package com.zhou.test.service.impl;

import com.zhou.test.dao.UserMapper;
import com.zhou.test.pojo.User;
import com.zhou.test.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    public User Login(String UserName, String PassWord) {
        User user = userMapper.Login(UserName, PassWord);
        return user;
    }

    public User FindByUsername(String UserName) {
        User user = userMapper.FindByUsername(UserName);
        return user;
    }
}
